<?php

namespace StudyBuddy\Controllers;

use StudyBuddy\WebPage;

/**
 * Controller for clearing
 * cache.
 *
 */
class Clearcache extends WebPage
{

	protected $permission = 'clear_cache';
	
	protected $membersOnly = true;
	
	protected $layoutID = 1;
	
	protected function main(){
		$this->oRegistry->Cache->flush();
		
		$this->aPageVars['body'] = '<div id="tools">'.$this->_('Cache Cleared').'</div>';
		
	}
}
